package com.yanshibo.house01_bean.bean;

import java.math.BigDecimal;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

//房屋配套表
public class PeiTao {
	private Integer id;
	
	@NotEmpty(message="配套设施不能为空")
	private String name;
	
	
	@NotNull(message="单价不能为空")
	private BigDecimal price;

	// 扩展字段
	private Integer hid;// 房屋信息id
	
	@NotNull(message="数量不能为空")
	private Integer num;// 配套数量

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getHid() {
		return hid;
	}

	public void setHid(Integer hid) {
		this.hid = hid;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

}
